package com.dxy.data.webcloud.zuul.filter;

import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.exception.ZuulException;
import org.springframework.stereotype.Component;

/**
 * @CLassName: AccessFilter
 * @Author: weixin
 * @Description: TODO
 * @DATE: 2018/11/11 2:50 PM
 * @Version: 1.0
 */
@Component
public class AccessFilter extends ZuulFilter {

    private static final String FILTER_TYPE = "pre";

    @Override
    public String filterType() {
        return FILTER_TYPE;
    }

    @Override
    public int filterOrder() {
        return 10000;
    }

    @Override
    public boolean shouldFilter() {
        return false;
    }

    @Override
    public Object run() throws ZuulException {
        return null;
    }
}
